home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / unixlib.lha / unix / include / sys / filio.h < prev    next >
Text File  |  1996-11-16  |  478b  |  15 lines

  1. /*
  2.  * Originally FIONBIO was simply defined to be 0, changed for
  3.  * compatibility with AmiTCP. (EF 16-Nov-96)
  4.  */
  5.  
  6. #define IOCPARM_MASK    0x1fff
  7. #define IOC_IN        0x80000000
  8. #define _IOC(inout,group,num,len) \
  9.     (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num))
  10. #define _IOW(g,n,t)    _IOC(IOC_IN, (g), (n), sizeof(t))
  11.  
  12. #define FIONBIO _IOW('f', 126, long) /* ioctl to change non blocking mode
  13.                     data (an int *) is a pointer a boolean,
  14.                     TRUE for non-blocking io */
  15.